const express = require('express');
const expressWs = require('express-ws')
const socketRouter = require('./ws/ws-controller.js');

var app = express();

expressWs(app)

app.use('/', socketRouter);

app.listen(8888); 

console.log("服务器启动：8888");
